iommu: Do not initialise global vars explicitly to zero.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 28 Oct 2009 17:27:47 +0000 (17:27 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 28 Oct 2009 17:27:47 +0000 (17:27 +0000)
Unnecessary and prevents them being allocated in BSS rather than data.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/drivers/passthrough/iommu.c

index 1e59a16e1962a4334e80cc9bdc26877331af7b29..e307e9d9fdd3639762c7cce079b42cdf7a764284 100644 (file)
@@ -37,19 +37,20 @@ static int iommu_populate_page_table(struct domain *d);
  *   no-intremap                Disable VT-d Interrupt Remapping
  */
 custom_param("iommu", parse_iommu_param);
-int iommu_enabled = 0;
-int iommu_pv_enabled = 0;
-int force_iommu = 0;
-int iommu_passthrough = 0;
-int iommu_snoop = 0;
-int iommu_qinval = 0;
-int iommu_intremap = 0;
-int amd_iommu_debug = 0;
-int amd_iommu_perdev_intremap = 0;
+int iommu_enabled;
+int iommu_pv_enabled;
+int force_iommu;
+int iommu_passthrough;
+int iommu_snoop;
+int iommu_qinval;
+int iommu_intremap;
+int amd_iommu_debug;
+int amd_iommu_perdev_intremap;
 
 static void __init parse_iommu_param(char *s)
 {
     char *ss;
+
     iommu_enabled = 1;
     iommu_snoop = 1;
     iommu_qinval = 1;